<template>
	 <view>
	    <view class="smart-page-head">
	      <view class="smart-page-head-title">navigator, 链接</view>
	    </view>
	    <navigator 
	      url="/pages/tabBar/tabcompage/newpage/newpage?Account=zlm&cid=1456"
	      hover-class="navigator-hover"
	    >
	      <button type="default">跳转到新页面</button>
		  </navigator>
	  <navigator url="/pages/tabBar/tabcompage/newpage/newpage" open-type="redirect" hover-class="other-navigator-hover">
	  			<button type="default">在当前页打开</button>
	  			</navigator>
	
	    <navigator 
	      url="/pages/tabBar/api/api" 
	      open-type="switchTab" 
	      hover-class="other-navigator-hover"
	    >
	      <button type="default">跳转tab页面</button>
	    </navigator>
	
	    <navigator 
	      url="/pages/tabBar/tabcompage/login/login"
	      hover-class="other-navigator-hover"
	    >
	      <button type="default">跳转到登录页面</button>
	    </navigator>
	</view>
</template>

<script>
	export default {
			data() {
				return {
					title:'navigator',
					Account:'list',
					CID:4423
				}
			},
			methods: {
				gonavigate(){
					list[2];
					uni.navigateTo({
						url:"/pages/tabBar/tabcompage/newpage/newpage?Account="
						+this.Account
						+"&cid="
						+this.CID
					})
					}
				}
			}
</script>

<style>
button{
	margin: 30rpx;
}
</style>
